home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / m17n / te-apple.mim < prev    next >
Text File  |  2009-04-29  |  5KB  |  249 lines

  1. ;;
  2. ;;        Input Method for Telugu Apple Keyboard Layout
  3. ;;
  4. ;;    Copyright (c) 2006, Chaitanya Kamisetty <chaitanya@atc.tcs.co.in>
  5. ;;
  6. ;;    This file is part of the m17n contrib; a sub-part of the m17n
  7. ;;    library.
  8. ;;
  9. ;;    This library is free software; you can redistribute it and/or
  10. ;;    modify it under the terms of the GNU Lesser General Public
  11. ;;    License as published by the Free Software Foundation; either
  12. ;;    version 2.1 of the License, or (at your option) any later version.
  13. ;;
  14. ;;    This library is distributed in the hope that it will be useful,
  15. ;;    but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ;;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  17. ;;    Lesser General Public License for more details.
  18. ;;
  19. ;;    You should have received a copy of the GNU Lesser General Public
  20. ;;    License along with this library; if not, write to the Free Software
  21. ;;    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  22. ;;
  23.  
  24. (input-method te apple)
  25.  
  26. (description "Apple keyboard layout for Telugu")
  27.  
  28. (title "α░ñα▒åα░▓α▒üα░ùα▒ü")
  29.  
  30. (map
  31.    (independent
  32.     ("0" "0")
  33.     ("1" "1")
  34.     ("2" "2")
  35.     ("3" "3")
  36.     ("4" "4")
  37.     ("5" "5")
  38.     ("6" "6")
  39.     ("7" "7")
  40.     ("8" "8")
  41.     ("9" "9")
  42.     ("@" "'")
  43.     ("#" "%")
  44.     ("\$"    "α▒ìα░¬α▒ü")
  45.     ("%"    "α▒ìα░░")
  46.     ("^" "-")
  47.     ("&" "|")
  48.     ("*" "`")
  49.     ("(" "(")
  50.     (")" ")")
  51.     ("-" "├ù")
  52.     ("_" "├╖")
  53.     ("=" "=")
  54.     ("+" "+")
  55.     ("\\" "α░â")
  56.     ("|" "α░ü")
  57.     ("}" "!")
  58.     ("I" "/")
  59.     ("<" ";")
  60.     ("." ".")
  61.     (">" "?")
  62.     ("g" "α░é")
  63.     ("G" ":")
  64.     ("Q" "α░òα▒ìα░╖α▒ìα░«α░┐")
  65.     ("O" "α░╕α▒ìα░ñα▒ìα░░")
  66.     ("P" "α░╖α▒ìα░ƒα▒ìα░░")
  67.     ("{" "α░òα▒ìα░╖α▒ìα░«")
  68.     ("N" "α░òα▒ìα░╖α▒ìα░«α▒Ç")
  69.     ("`" "_")
  70.     ("h" "α▒ì")
  71.     ("H" "α▒ì")
  72.     ("q" "α░à")
  73.     ("e" "α░å")
  74.     ("r" "α░ç")
  75.     ("w" "α░ê")
  76.     ("i" "α░ë")
  77.     ("p" "α░è")
  78.     ("W" "α░ï")
  79.     ("E" "α▒á")
  80.     ("u" "α░Ä")
  81.     ("o" "α░Å")
  82.     ("[" "α░É")
  83.     ("t" "α░Æ")
  84.     ("y" "α░ô")
  85.     ("]" "α░ö")
  86.     )
  87.    (dependent_vowels
  88.     ("e"     "α░╛")
  89.     ("r"    "α░┐")
  90.     ("w"    "α▒Ç")
  91.     ("i"    "α▒ü")
  92.     ("p"    "α▒é")
  93.     ("W"    "α▒â")
  94.     ("E"    "α▒ä")
  95.     ("u"    "α▒å")
  96.     ("o"    "α▒ç")
  97.     ("["    "α▒ê")
  98.     ("t"    "α▒è ")
  99.     ("y"    "α▒ï")
  100.     ("]"    "α▒î")
  101.     ("H"    "α▒ì")
  102.     )
  103.  
  104.    (a_matra
  105.     ("q" "")
  106.    )
  107.  
  108.    (consonants
  109.     ("j" "α░ò")
  110.     ("J" "α░û")
  111.     ("x" "α░ù")
  112.     ("X" "α░ÿ")
  113.     ("R" "α░Ö")
  114.     ("m" "α░Ü")
  115.     ("M" "α░¢")
  116.     ("/" "α░£")
  117.     ("?" "α░¥")
  118.     ("T" "α░₧")
  119.     ("z" "α░ƒ")
  120.     ("Z" "α░á")
  121.     ("c" "α░í")
  122.     ("C" "α░ó")
  123.     ("L" "α░ú")
  124.     ("s" "α░ñ")
  125.     ("S" "α░Ñ")
  126.     ("d" "α░ª")
  127.     ("D" "α░º")
  128.     ("l" "α░¿")
  129.     (";" "α░¬")
  130.     (":" "α░½")
  131.     ("v" "α░¼")
  132.     ("V" "α░¡")
  133.     ("b" "α░«")
  134.     ("n" "α░»")
  135.     ("k" "α░░")
  136.     ("a" "α░▓")
  137.     ("f" "α░╡")
  138.     ("F" "α░╢")
  139.     ("\"" "α░╖")
  140.     ("'" "α░╕")
  141.     ("B" "α░╣")
  142.     ("A" "α░│")
  143.     ("K" "α░▒")
  144.     ("Y" "α░òα▒ìα░╖")
  145.     ("U" "α░╢α▒ìα░░α▒Ç")
  146.     )
  147.  
  148.     ;;consonants occuring after a halant 
  149.    (halant_consonants
  150.     ("j" (delete @-) "α░ò")
  151.     ("J" (delete @-) "α░û")
  152.     ("x" (delete @-) "α░ù")
  153.     ("X" (delete @-) "α░ÿ")
  154.     ("R" (delete @-) "α░Ö")
  155.     ("m" (delete @-) "α░Ü")
  156.     ("M" (delete @-) "α░¢")
  157.     ("/" (delete @-) "α░£")
  158.     ("?" (delete @-) "α░¥")
  159.     ("T" (delete @-) "α░₧")
  160.     ("z" (delete @-) "α░ƒ")
  161.     ("Z" (delete @-) "α░á")
  162.     ("c" (delete @-) "α░í")
  163.     ("C" (delete @-) "α░ó")
  164.     ("L" (delete @-) "α░ú")
  165.     ("s" (delete @-) "α░ñ")
  166.     ("S" (delete @-) "α░Ñ")
  167.     ("d" (delete @-) "α░ª")
  168.     ("D" (delete @-) "α░º")
  169.     ("l" (delete @-) "α░¿")
  170.     (":" (delete @-) "α░½")
  171.     ("v" (delete @-) "α░¼")
  172.     ("V" (delete @-) "α░¡")
  173.     ("b" (delete @-) "α░«")
  174.     ("n" (delete @-) "α░»")
  175.     ("k" (delete @-) "α░░")
  176.     ("a" (delete @-) "α░▓")
  177.     ("f" (delete @-) "α░╡")
  178.     ("F" (delete @-) "α░╢")
  179.     ("\"" (delete @-)  "α░╖")
  180.     ("'" (delete @-) "α░╕")
  181.     ("B" (delete @-) "α░╣")
  182.     ("A" (delete @-) "α░│")
  183.     ("K" (delete @-) "α░▒")
  184.     ("Y" (delete @-) "α░òα▒ìα░╖")
  185.     ("U" (delete @-) "α░╢α▒ìα░░α▒Ç")
  186.    )
  187.  
  188.    ;; halant occuring after a dependent vowel
  189.    (halant_after_vowel
  190.     ("h" (delete @-) "α▒ì" )
  191.     ("H" (delete @-) "α▒ì" )
  192.    )
  193.  
  194.    (halant
  195.     ("h" "α▒ì" )
  196.     ("H" "α▒ì" )
  197.    )
  198.  
  199.  ; m17n stuff
  200.  (return
  201.   ((Return)))
  202.  
  203.   (backspace
  204.   ((BackSpace) (undo)))
  205. )
  206.  
  207. (state
  208.     (init (consonants (shift first))
  209.       (independent)
  210.     )
  211.     (first 
  212.     (a_matra (shift second_a))
  213.     (dependent_vowels (set current_vowel @-) (shift second_b))
  214.     (halant (shift third_a))
  215.     (backspace)
  216.     )
  217.     ;;consonat+a matra    
  218.     (second_a
  219.     (halant (shift third_a))
  220.     (backspace)
  221.     )
  222.     ;;state when consonant+dependent vowel occurs
  223.     (second_b
  224.     ;;move the dependent vowel to the end and add halant to the base consonant
  225.     (halant_after_vowel (insert current_vowel) (shift fourth))
  226.     (consonants (set current_vowel 0) (shift first))
  227.     (backspace)
  228.     )
  229.     ;;consonant when followed by halant
  230.     (third_a
  231.     (consonants (shift third_b))
  232.     (backspace)
  233.     )    
  234.     ;;state when cosonant+halant+consonant occurs
  235.     ;;further composition of halant+consonant is achieved with third_a and third_b states
  236.     ;;this is required as dependent and independent vowels have same keys and have to be
  237.     ;;identified  by the context 
  238.     (third_b
  239.     (halant (shift third_a))
  240.     (consonants (shift first))
  241.     (backspace)
  242.     )    
  243.     (fourth 
  244.     ;;delete the dependent vowel and add at the end after the consonant
  245.     (halant_consonants (insert current_vowel) (shift second_b))
  246.     (backspace)
  247.     )
  248. )
  249.